package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.PageBean;
import com.sky.vo.EmployeeLoginVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;

@Service
public interface EmployeeService {
    /**
     * 登录检查
     */
    public EmployeeLoginVO checkLogin(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 新增员工功能
     */
    void addEmp(EmployeeDTO employeeDTO);

    /**
     * 分页查询功能
     *
     * @param employeePageQueryDTO
     * @return
     */
    PageBean pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 更改员工的状态
     *
     * @param status
     * @param id
     */
    void setStatus(Integer status, Long id);

    /**
     * 根据id查找员工
     *
     * @param id
     * @return
     */
    Employee getById(Long id);

    /**
     * @param employeeDTO
     */
    void updateById(EmployeeDTO employeeDTO);

    /**
     * 修改员工密码
     */
    void changePassword(PasswordEditDTO passwordEditDTO);
}
